<?php require VIEW_PATH."/header.php";?>
<body>

<div class="hd-menu-list">
    <ul>
        <li class="active"><a href="#">栏目管理</a></li>
        <li><a href="{{U('add')}}">添加栏目</a></li>
    </ul>
</div>

<table class="hd-table hd-table-list">
    <thead>
    <tr>
        <td class="hd-w50">id</td>
        <td>栏目名称</td>
        <td class="hd-w100">操作</td>
    </tr>
    </thead>
    <tbody>
    {{foreach from="$data" value="$v"}}
    <tr>
        <td>{{$v['cat_id']}}</td>
        <td>
            {{$v['_name']}}
        </td>
        <td class="hd-w100">
            <a href="{{U('edit',array('cat_id'=>$v['cat_id']))}}">修改</a> |
            <a href="#">删除</a>
        </td>
    </tr>
    {{endforeach}}
    </tbody>
</table>

</body>
</html>